package com.cfp4cloud.cfp.knowledge.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * AI OCR
 *
 * @author cfp
 * @date 2024-09-10 00:49:08
 */
@Data
@TableName("ai_ocr_conf")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "AI OCR")
public class AiOcrConfEntity extends Model<AiOcrConfEntity> {

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "主键")
	private Long id;

	/**
	 * 标题
	 */
	@Schema(description = "标题")
	private String ocrTitle;

	/**
	 * 描述提示词
	 */
	@Schema(description = "描述提示词")
	private String ocrPrompt;

	/**
	 * 资源base64
	 */
	@Schema(description = "资源base64")
	private String imageResource;

	/**
	 * 标注结果
	 */
	@Schema(description = "标注结果")
	private String ocrMarked;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "修改人")
	private LocalDateTime updateBy;

	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "修改时间")
	private LocalDateTime updateTime;

	/**
	 * 删除标记
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "删除标记")
	private String delFlag;

	/**
	 * 聊天模型名称
	 */
	@TableField(exist = false)
	private String chatModelName;

	/**
	 * 图像模型名称
	 */
	@TableField(exist = false)
	private String visionModelName;

}
